package cn.xscrum.demo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.xscrum.demo.mapper.CostRateMapper;
import cn.xscrum.demo.domain.CostRate;
import cn.xscrum.demo.service.ICostRateService;
import cn.xscrum.common.core.text.Convert;

/**
 * 换乘费用占比分析Service业务层处理
 * 
 * @author xscrum
 * @date 2020-11-29
 */
@Service
public class CostRateServiceImpl implements ICostRateService 
{
    @Autowired
    private CostRateMapper costRateMapper;

    /**
	 * 查询换乘费用占比分析
     * 
     * @param no8 换乘费用占比分析ID
     * @return 换乘费用占比分析
     */
    @Override
    public CostRate selectCostRateById(Long no8)
    {
        return costRateMapper.selectCostRateById(no8);
    }

    /**
	 * 查询换乘费用占比分析列表
     * 
     * @param costRate 换乘费用占比分析
     * @return 换乘费用占比分析
     */
    @Override
    public List<CostRate> selectCostRateList(CostRate costRate)
    {
        return costRateMapper.selectCostRateList(costRate);
    }

    /**
	 * 新增换乘费用占比分析
     * 
     * @param costRate 换乘费用占比分析
     * @return 结果
     */
    @Override
    public int insertCostRate(CostRate costRate)
    {
        return costRateMapper.insertCostRate(costRate);
    }

    /**
	 * 修改换乘费用占比分析
     * 
     * @param costRate 换乘费用占比分析
     * @return 结果
     */
    @Override
    public int updateCostRate(CostRate costRate)
    {
        return costRateMapper.updateCostRate(costRate);
    }

    /**
	 * 删除换乘费用占比分析对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCostRateByIds(String ids)
    {
        return costRateMapper.deleteCostRateByIds(Convert.toStrArray(ids));
    }

    /**
	 * 删除换乘费用占比分析信息
     * 
     * @param no8 换乘费用占比分析ID
     * @return 结果
     */
    @Override
    public int deleteCostRateById(Long no8)
    {
        return costRateMapper.deleteCostRateById(no8);
    }
}
